<?php
 ?>
<title>Menu Design 8</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="description" content="CSS menus free for all" />
<meta name="keywords"
	content="CSS, css, CSS menu, CSS design, css design, CSS menu design, e-lusion, Ian, ian, e-lusion.com" />
<meta name="author" content="Ian Main" />
<meta name="Copyright"
	content="Creative Commons - http://creativecommons.org/licenses/by/2.0/" />

<style type="text/css">
td,tr {
	border: 0;
}
</style>

<table cellpadding="0" cellspacing="0">

	<tr>
		<td id="content-header-left" align='center'>Categories</td>
		<td id='content-header-center' align='center'>Fun Time</td>
		<td id="content-header-right"></td>
	</tr>

	<tr>

		<td bgcolor="#FFF8E5" valign="top">
		 <table>
			  <?php foreach($main_categeories->result() as $item) {?>
			      <tr>
		       <td><img src="<?=base_url();?>assets/imgs/button-img.gif" /></td>
			   		
			 <td class="sidelinks"><a href="<?=base_url()?>funlist/index/<?=$item->id?>"
				title="Amazing pictures">&nbsp;<?=ucfirst(trim_name($item->catname,15))?></a></td>
		     		 </tr>
			     <? } ?>
	 </table>
		</td>
		
		<td>
		<?	if(empty($recentcategeories))
 	 {
 	 	
 	 	
 	    	 echo "<h1 align='center'>No Data Found</h1>";	
 	    
 	 } else {?>
	
		<table cellspacing="4" cellpadding="4">
			<tr>
				<td><font size="2" color="#000000">
				
				<table height="430" bgcolor="#FF9853" border="2" bordercolor="black"
					cellspacing="4" cellpadding="4">
 	
  			  <?php $i=1;
 	 //print_r($recentcategeories);
 	 
 	    
 	 	foreach($recentcategeories as $item):
       $id=$item['id'];
      
       ?>
      
 				
  				<tr>
						<td valign="top"><div style="height:105px;width:150px" align='center'><img
							src="<?=base_url();?>assets/fun/recentimage<?=$images[$id]?>_thumb.jpg"
							alt="oops"></div></td>
					</tr>
					<tr>
						<td cellspacing="0" cellpadding="0" align='center'><b><?=substr($item['catname'],0,12)?></b></td>
					</tr>
    	 		
  		
  		<?php 
  		if($i%3 == 0 )
  		{?></table>
				</font></td>
				<?if($i!=9){?>
				<td><font size="2" color="#000000">
				<table height="430" bgcolor="#FF9853" border="2" bordercolor="black"
					cellspacing="4" cellpadding="4">
 		<?}?>
  			
  		<? }
  		
  		$i++;?>
  	
  		</table>
  		</font></td>
  		<?	endforeach;} ?>
 
  		
  
 <td></td>
</tr>


		</table>